﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Uc_FQADetail.ascx.cs" Inherits="BatDongSan.Modules.FQADetail" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<div style="border:1px solid #DDDDDD;">
    <div style="padding:5px 15px; background-color:#0E88D3; text-align:left;">
        <asp:Label ID="lbTitle" runat="server" ForeColor="#FFFFFF" Font-Bold="true" Text="HỎI - ĐÁP" Font-Size="13px" Font-Names="Tahoma"></asp:Label>
    </div>
    <div style="padding:10px; ">
    
    <div style="padding-bottom:5px;">
        <asp:Label ID="lbName" runat="server"></asp:Label> - 
        <asp:Label ID="lbDateCreate" runat="server"></asp:Label>
    </div>
    <div style="padding-bottom:5px;">
        <asp:Label ID="lbReply" runat="server"></asp:Label> 
        <asp:Label ID="lbView" runat="server"></asp:Label>
    </div>
    <div style="padding-bottom:5px;">
        <b>Chi tiết câu hỏi</b>
    </div>
    <div style="padding-bottom:5px; border-bottom:1px solid #868686;">
        <asp:Literal ID="ltrContent" runat="server"></asp:Literal>
    </div>
    
    <!--Danh sach tra loi-->
    <div>
        <div style="padding-bottom:10px; padding-top:10px;">
            <b>
                Các câu trả lời:
            </b>
        </div>
        <div>
             <asp:Repeater ID="rptAnswers" runat="server" OnItemDataBound="rptAnswers_ItemDataBound">
                <ItemTemplate>
                    <div style="padding-bottom:10px; padding-top:10px; border-bottom:1px dotted #868686;">
                        <div style="padding-bottom:5px;">
                            <asp:Label ID="lbNameAnswer" runat="server"></asp:Label> - 
                            <asp:Label ID="lbDateCreateAnswer" runat="server"></asp:Label>
                        </div>
                        <div>
                            <asp:Literal ID="ltrContentAnswer" runat="server"></asp:Literal>
                        </div>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </div>
    </div>
    <!--End Danh sach tra loi-->
    <!--Tra loi cho cau hoi-->
    <div style="padding-top:10px; padding-bottom:10px;">
        <b>Trả lời câu hỏi này</b>
    </div>
    <div style="padding-bottom:5px;">
        <asp:Label ID="lbStatus" runat="server" ForeColor="Red"></asp:Label>
    </div>
    <div>
        <div>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td width="50%" style="padding-top:10px; font-weight:bold; padding-bottom:5px;">
                        Tên liên hệ (<span style="color:Red;">*</span>)
                    </td>
                    <td width="50%" style="padding-top:10px; font-weight:bold; padding-bottom:5px;">
                        Email (<span style="color:Red;">*</span>)
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtName" runat="server" Width="90%"></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox ID="txtEmail" runat="server" Width="90%"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </div>
        <div style="padding-top:10px; font-weight:bold;  padding-bottom:5px;">
            Câu hỏi (<span style="color:Red;">*</span>)
        </div>
        <div>
            <FCKeditorV2:FCKeditor ID="fckContent" Height="150px" runat="server" ToolbarSet="Basic1" Width="100%">
            </FCKeditorV2:FCKeditor>
        </div>
        <div style="padding:10px;">
            <asp:Button ID="btReply" runat="server" Text="Trả lời" ForeColor="#0F8AD3" Font-Bold="true" Width="70"
                onclick="btReply_Click" />
        </div>
        <!--End Tra loi cho cau hoi-->
    </div>
    </div>
</div>